#include "IntervalTree.h"

int main(int argc, char* argv[])
{
  IntervalTree<double> A;
  A.Insert(15.2,34.2);
  A.Insert(3.4,5.1);
  A.tree_search(3.4,5.1,A.get_root());
  A.Insert(12.3,12.4);
  A.Insert(4.6,18.4);
  A.Insert(23.5,32.4);
  A.Insert(18.3,29.4);
  A.inorder_walk(A.get_root());
  A.Del(3.4, 5.1);
  A.tree_search(3.4,5.1,A.get_root());
  A.inorder_walk(A.get_root());
  A.IntervalSearch(16.4,18.7);
  A.IntervalSearch(30.0,31.0);
  return 0;
};
